package com.imooc.girl.repository;

import com.imooc.girl.domain.InstructorInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;



public interface InsInfoRepositry extends JpaRepository<InstructorInfo,String>,JpaSpecificationExecutor<InstructorInfo>{
    @Query(value = "select i.grade from InstructorInfo i where i.id = ?1")
    String findOneById(String id);
}
